package com.example.back.jpa;

import com.example.common.entity.Pharmacist;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

/**
 * @author sifan
 * @PackagName:com.example.back.jpa
 * @ClassName: PharmacistRepository
 * @Description:
 * @date:2021/2/1 9:21
 */
import org.javers.spring.annotation.JaversSpringDataAuditable;

@JaversSpringDataAuditable
public interface PharmacistRepository extends JpaRepository<Pharmacist,Long> {

    Pharmacist findByPhone(String phone);

    int countByPhone(String phone);
    int countByPhoneAndAndDisable(String phone,Boolean disable);
}
